﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Member_List.ascx.cs" Inherits="cbmobile.UserControl.Member_List" %>

<%@ Register Assembly="PQT.Controls" Namespace="PQT.Controls" TagPrefix="pqt" %>

<script language="JAVASCRIPT" type="text/javascript">
    function verify() {
        msg = "Bạn chắc chắn muốn xóa thông tin này không?";
        return confirm(msg);
    } 
</script>


<div class="sb-box">
    <div class="header">
        <h3>Danh sách hãng sản xuất</h3>
    </div>
    <div class=" clear"></div>
    <div class="bcont">
        <div class="search_box" align="center">
            <table cellpadding="0" cellspacing="0">
                <tr class="trLabelFilter1">
                    <td>
                       Tên
                    </td>
                    <td>
                        <asp:TextBox ID="txtSearch" CssClass="inputtext" Width="100px" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <asp:LinkButton ID="btnSearch" CssClass="button small" runat="server" OnClick="btnSearch_Click">
                                            <span>Search</span>
                        </asp:LinkButton>
                    </td>
                </tr>
            </table>
        </div>
        <div class=" clear">
        </div>
        <div>
        <asp:GridView ID="gvList" runat="server" CssClass="infotable" AutoGenerateColumns="false"
                AlternatingRowStyle-CssClass="bg" Width="100%" 
                OnRowCommand="gvList_RowCommand">
            <Columns>
                <asp:TemplateField HeaderText="STT">
                    <ItemTemplate>
                        <%# numpage() + Container.DisplayIndex + 1%>
                    </ItemTemplate>
                    <ItemStyle Width="30px" CssClass="C" />
                </asp:TemplateField>
            </Columns>
             <Columns>
                <asp:TemplateField HeaderText="User ID">
                    <ItemTemplate>
                        <asp:Label ID="lblUserID" CssClass="text002" Text='<%# Eval("UserID") %>' runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
             <Columns>
                <asp:TemplateField HeaderText="Tên đăng nhập">
                    <ItemTemplate>
                        <asp:Label ID="lblTenDangNhap" CssClass="text002" Text='<%# Eval("TenDangNhap") %>' runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
             <Columns>
                <asp:TemplateField HeaderText="Tên đầy đủ">
                    <ItemTemplate>
                        <asp:Label ID="lblTenDayDu" CssClass="text002" Text='<%# Eval("TenDayDu") %>' runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <Columns>
                <asp:TemplateField HeaderText="Ngày sinh">
                    <ItemTemplate>
                        <asp:Label ID="lblNgaySinh" CssClass="text002" Text='<%# Eval("NgaySinh") %>' runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <Columns>
                <asp:TemplateField HeaderText="Giới tính">
                    <ItemTemplate>
                        <asp:Label ID="lblGioiTinh" CssClass="text002" Text='<%# Eval("GioiTinh") %>' runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <Columns>
                <asp:TemplateField HeaderText="Email">
                    <ItemTemplate>
                        <asp:Label ID="lblEmail" CssClass="text002" Text='<%# Eval("Email") %>' runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <Columns>
                <asp:TemplateField HeaderText="Địa chỉ">
                    <ItemTemplate>
                        <asp:Label ID="lblDiaChi" CssClass="text002" Text='<%# Eval("DiaChi") %>' runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <Columns>
                <asp:TemplateField HeaderText="Số điện thoại">
                    <ItemTemplate>
                        <asp:Label ID="lblSoDienThoai" CssClass="text002" Text='<%# Eval("SoDienThoai") %>' runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns><Columns>
                <asp:TemplateField HeaderText="Trạng thái">
                    <ItemTemplate>
                        <asp:Label ID="lblTrangThai" CssClass="text002" Text='<%# StatusName(Eval("TrangThai")) %>' runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <Columns>
                <asp:TemplateField HeaderText="Thao tác" HeaderStyle-Width="70px">
                    <ItemTemplate>
                        <asp:HyperLink ID="Label6" CssClass="text002" NavigateUrl='<%# BindURLAddParam("UserID", Eval("UserID"))%>'
                            runat="server">
                            <asp:Image ID="Image1" ImageUrl="/images/ico_detail.png" runat="server" />
                        </asp:HyperLink>
                    </ItemTemplate>
                    <ItemStyle Width="60px" CssClass="C" />
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        </div>
        <div class="pagination">
            <pqt:PQTPager ID="PQTPager1" runat="server" OnPageIndexChanged="Pager_PageIndexChanged"
                Width="410px" />
        </div>
        <div class=" clear">
        </div>
    </div>
</div>
